<?php
require '../../../../zb_system/function/c_system_base.php';
require $blogpath . 'zb_users/theme/ydbaijia/admin/header.php';
?>
<!--主题配置开始-->
<div class="SubMenu">
<?php ydbaijia_SubMenu(12);?>
</div>
<?php
if(isset($_GET['order']) &&  $_GET['order']== 'delthumb' ){	
	ydbaijia_thumb2del();	
	$zbp->SetHint('good','所有缩略图删除成功');
	Redirect('./thumb2.php');
	exit;
}
?>
<div id="divMain2">
<!--首页设置-->
	<?php
	if(count($_POST)>0){
		$zbp->Config( 'ydbaijia' )->noimgstyle2 = $_POST[ 'noimgstyle2' ];
		$zbp->Config( 'ydbaijia' )->noimg2 = $_POST[ 'noimg2' ];
		// $zbp->Config( 'ydbaijia' )->homedescription = $_POST['homedescription'];
		if(GetVars('thumb2')){//开关
			$zbp->Config('ydbaijia')->thumb2 = $_POST['thumb2'];
		}else{
			$zbp->Config('ydbaijia')->thumb2 = '';
		}
		$zbp->SaveConfig( 'ydbaijia' );
		$zbp->ShowHint( 'good' );
	}
	?>
	<form method="post" action="thumb2.php?order=delthumb">
		<div class="laobai_wrap">
			<input type="submit" value="清空缩略图" />
		</div>
	</form>
	<form id="form2" name="form2" method="post">
		<div class="lbadmin">
			<!--///-->
			<h3>剪裁缩略图</h3>
			<div class="lbimport">
				<span>是否剪裁缩略图</span>
				<input type="checkbox" name="thumb2" value="true" <?php if($zbp->Config('ydbaijia')->thumb2) echo 'checked="checked"'?> />
				<i class="red">开启可剪裁生成缩略图文件在  根目录/thumb/内，切换主题的时候会自动清空缩略图</i>
			</div>
			<!--///-->
			<div class="lbimport">
				<span>无图时显示方式</span>
				<div class="radio">
					<label>
						<input type="radio"  name="noimgstyle2" value="1" <?php if($zbp->Config('ydbaijia')->noimgstyle2 == '1') echo 'checked'?> />显示一张图片
					</label>
					<label>
						<input type="radio" name="noimgstyle2" value="2" <?php if($zbp->Config('ydbaijia')->noimgstyle2 == '2') echo 'checked'?> />随机显示几张
					</label>
				</div>
			</div>
			<!--///-->
			<div class="lbimport">
				<span>一张无图标识图片</span>
				<input type="text" name="noimg2" class="uplod_img" placeholder="点我！点我！！点我！！！" value="<?php echo $zbp->Config('ydbaijia')->noimg2;?>">
				<i class="red">当上方单选选择显示一张图片时有效</i>
			</div>

			<!--///-->
			<input name="" type="Submit" class="button" value="保存"/>
		</div>
		
	</form>
<!---->
</div>
<script type="text/javascript" src="<?php echo $bloghost?>zb_users/plugin/UEditor/ueditor.config.php"></script>
<script type="text/javascript" src="<?php echo $bloghost?>zb_users/plugin/UEditor/ueditor.all.min.js"></script>
<script type="text/javascript" src="<?php echo $bloghost?>zb_users/theme/ydbaijia/admin/js/lib.upload.js"></script>
<?php require $blogpath . 'zb_users/theme/ydbaijia/admin/footer.php'; ?>